import service from '@/utils/request'

// @Tags EyeStyleDocument
// @Summary 创建眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeStyleDocument true "创建眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /eyeStyleDocument/createEyeStyleDocument [post]
export const createEyeStyleDocument = (data) => {
  return service({
    url: '/eyeStyleDocument/createEyeStyleDocument',
    method: 'post',
    data
  })
}

// @Tags EyeStyleDocument
// @Summary 删除眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeStyleDocument true "删除眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /eyeStyleDocument/deleteEyeStyleDocument [delete]
export const deleteEyeStyleDocument = (params) => {
  return service({
    url: '/eyeStyleDocument/deleteEyeStyleDocument',
    method: 'delete',
    params
  })
}

// @Tags EyeStyleDocument
// @Summary 批量删除眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /eyeStyleDocument/deleteEyeStyleDocument [delete]
export const deleteEyeStyleDocumentByIds = (params) => {
  return service({
    url: '/eyeStyleDocument/deleteEyeStyleDocumentByIds',
    method: 'delete',
    params
  })
}

// @Tags EyeStyleDocument
// @Summary 更新眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeStyleDocument true "更新眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /eyeStyleDocument/updateEyeStyleDocument [put]
export const updateEyeStyleDocument = (data) => {
  return service({
    url: '/eyeStyleDocument/updateEyeStyleDocument',
    method: 'put',
    data
  })
}

// @Tags EyeStyleDocument
// @Summary 用id查询眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.EyeStyleDocument true "用id查询眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /eyeStyleDocument/findEyeStyleDocument [get]
export const findEyeStyleDocument = (params) => {
  return service({
    url: '/eyeStyleDocument/findEyeStyleDocument',
    method: 'get',
    params
  })
}

// @Tags EyeStyleDocument
// @Summary 分页获取眼型编号主档列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取眼型编号主档列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /eyeStyleDocument/getEyeStyleDocumentList [get]
export const getEyeStyleDocumentList = (params) => {
  return service({
    url: '/eyeStyleDocument/getEyeStyleDocumentList',
    method: 'get',
    params
  })
}
